<?php include('_init_.php'); ?>
<?php 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/admin-body.css" rel="stylesheet" type="text/css" />
<link href="../css/admin-keyword.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
function new_key_word()
{
	var url = 'keyword.php?act=new&ke_word='+encodeURIComponent($('#ui_new_key_word').val());
	document.location = url;
	return false;
}
</script>
<title>班尼頓寫真後台管理</title>
</head>

<body>
<?php include_once('admin-top.php');?>
 <form method="post" action="<?php echo $_SERVER['PHP_SELF']?>"> 
 <input type="hidden" name="act" value="save"/>
<div id="main" class="clearfix"><!-- star #main //-->
  <div id="contactall"><!-- star #main //-->
  <div id="tit" ><!-- star #tit //-->
    <ul>
    <li class="tit-a">關鍵字管理</li>
    <li class="tit-b"><a href="#save" onclick="document.forms[0].submit();return false;">儲存</a></li>
    </ul>
  </div><!-- end #tit //-->
    <div id="contact" class="clearfix" ><!-- star #ForMate //-->
  <ul>
  <li class="tit2-1">關鍵字管理</li>
    <li class="fm2-2">
    <?php foreach($GLOBALS['META_KEY_WORDS'] as $id=>$key_word):?>
    <p><input name="key_word_<?php echo $id?>" type="text" class="fm2-2a" value="<?php echo $key_word;?>" /></p>
    <?php endforeach;?>
    </li>
    </ul>
    <ul>
  <li class="tit-1">新增關鍵字</li>
    <li class="fm2-2">
    <p><input id="ui_new_key_word"   type="text" class="fm2-2a" /></p>
    </li>
    <li class="fm2-3"><a href="#" onclick="return new_key_word();">新增</a></li>
    </ul>
  
  </div><!-- end #ForMate //-->
  </div><!-- end #contactall //-->
</div><!-- end #main //-->
</form>
</body>
</html>